
public class SecureTagLib {

  static namespace = "gp"

  def secureLink = { attrs, body ->
    if(session.user) {
      out << g.link(attrs, body)
    }
  }

  def secureRemoteLink = { attrs, body ->
    if(session.user) {
      out << g.remoteLink(attrs, body)
    }
  }

  def noAuthOnlyLink = { attrs, body ->
    if(!session.user) {
      out << g.link(attrs, body)
    }
  }

}
